package com.wf.demo.job.dao;

import com.wf.demo.info.pojo.Device;
import com.wf.demo.job.pojo.TimeOfDevice;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Auther: wf
 * @Date: 2019/12/11 21:31
 * @Description:
 */
public interface TimeOfDeviceDAO extends JpaRepository<TimeOfDevice,Integer> {
    //找到设备每个月的记录表
    Page<TimeOfDevice> findByDevice(Device device, Pageable pageable);
}
